<template>
	<view style="overflow: hidden;">
		<view style="height: 20rpx;background-color: #f8f8f8;"></view>
		<view class="pl-30 pr-30">
			<view class="flex pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">姓名</view>
				<view class="size-28">张三</view>
			</view>
			<view class="flex pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">性别</view>
				<view class="size-28">男</view>
			</view>
			<view class="flex pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">问诊时间</view>
				<view class="size-28">2023-2-10 </view>
			</view>
			<view class="flex pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">科室</view>
				<view class="size-28">2023-2-10 </view>
			</view>
			<view class=" pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">备注</view>
				<textarea name="" id="" disabled cols="30" rows="10" placeholder="请输入"></textarea>
			</view>
			<!-- <view class=" pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">病情描述：</view>
				<textarea name="" id="" cols="30" disabled rows="10" placeholder="请输入"></textarea>
			</view> -->
			<view class=" pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">患处照片（最多上传8张照片）：：</view>
				<view class="mt-30 flex_l flex-wrap">
					<view class="img">
						<image src="/static/add.png" mode=""></image>
					</view>
				</view>
			</view>
			<view class=" pt-40 pb-40" style="border-bottom: 2rpx solid #F1F1F1;">
				<view class="size-28">诊断：</view>
				<textarea name="" id="" disabled cols="30" rows="10" placeholder="请输入"></textarea>
			</view>
			<!-- <view class="btn">
				保存
			</view> -->
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id: '',
				department_id: '',
				data: {}
			};
		},
		onLoad(op) {
			this.id = op.id
			this.department_id = op.department_id
			this.detail()
		},
		methods: {
			detail() {
				this.$api.caseDetail({
					order_id: this.id,
					department_id: this.department_id
				}).then(res => {
					this.data = res.data
				})
			},
		}
	}
</script>

<style lang="scss">
	.btn {
		margin: 168rpx auto 80rpx;
	}

	input {
		text-align: right;
		font-size: 28rpx;
	}

	.img {
		width: 164rpx;
		height: 164rpx;
		border-radius: 20rpx 20rpx 20rpx 20rpx;

		image {
			width: 164rpx;
			height: 164rpx;
		}
	}

	textarea {
		width: 100%;
		height: 164rpx;
		background: #F8F8F8;
		border-radius: 20rpx 20rpx 20rpx 20rpx;
		padding: 30rpx;
		box-sizing: border-box;
		font-size: 24rpx;
		margin-top: 30rpx;
	}
</style>
